function ajaxfz(beg,url,data,callback,isAsync){
    var xhr = new XMLHttpRequest();
    var urlstr = url;
    if(beg.toLowerCase() == "get"){
        urlstr +="?"+data;
    }
    xhr.open(beg,urlstr,isAsync);
    xhr.onreadystatechange = function () {
        if(xhr.readyState == 4 && xhr.status ==200){
            callback(xhr.responseText);
        }
    }
    if(beg.toLowerCase() == "get"){
        xhr.send();
    }else if(beg.toLowerCase() == "post"){
        xhr.setRequestHeader("content-type","application/x-www-form-urlencoded");
        xhr.send(data);
    }
}